#include "Matrice.h"
#include "Point.h"
#include <math.h>
#include <iostream>

using namespace std;

Point::Point()
{
    x = 0;
    y = 0;
}

Point::~Point()
{
    //dtor
}

void Point::affiche_point()
{
    cout << "[ " << x << " ; " << y << " ]\n" <<endl;
}

void Point::set(double a, double b)
{
    x = a;
    y = b;
}

double Point::get_x()
{
    return x;
}

double Point::get_y()
{
    return y;
}

void Point::bouger(Matrice A)
{
    double m_x, m_y;

    m_x = (A.get_i_j(1,1))*x + (A.get_i_j(1,2))*y + A.get_i_j(1,3);
    m_y = (A.get_i_j(2,1))*x + (A.get_i_j(2,2))*y + A.get_i_j(2,3);

    x = m_x;
    y = m_y;
}
